Integrand size = 28, antiderivative size = 202 \[ \int (e \sec (c+d x))^{7/2} (a+i a \tan (c+d x))^3 \, dx=-\frac {2 a^3 e^4 E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d \sqrt {\cos (c+d x)} \sqrt {e \sec (c+d x)}}+\frac {10 i a^3 (e \sec (c+d x))^{7/2}}{21 d}+\frac {2 a^3 e^3 \sqrt {e \sec (c+d x)} \sin (c+d x)}{d}+\frac {2 a^3 e (e \sec (c+d x))^{5/2} \sin (c+d x)}{3 d}+\frac {2 i a (e \sec (c+d x))^{7/2} (a+i a \tan (c+d x))^2}{11 d}+\frac {10 i (e \sec (c+d x))^{7/2} \left (a^3+i a^3 \tan (c+d x)\right )}{33 d} \]
[Out]
Time = 0.27 (sec) , antiderivative size = 202, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.179, Rules used = {3579, 3567, 3853, 3856, 2719} \[ \int (e \sec (c+d x))^{7/2} (a+i a \tan (c+d x))^3 \, dx=-\frac {2 a^3 e^4 E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d \sqrt {\cos (c+d x)} \sqrt {e \sec (c+d x)}}+\frac {2 a^3 e^3 \sin (c+d x) \sqrt {e \sec (c+d x)}}{d}+\frac {10 i a^3 (e \sec (c+d x))^{7/2}}{21 d}+\frac {2 a^3 e \sin (c+d x) (e \sec (c+d x))^{5/2}}{3 d}+\frac {10 i \left (a^3+i a^3 \tan (c+d x)\right ) (e \sec (c+d x))^{7/2}}{33 d}+\frac {2 i a (a+i a \tan (c+d x))^2 (e \sec (c+d x))^{7/2}}{11 d} \]
[In]
[Out]
Rule 2719
Rule 3567
Rule 3579
Rule 3853
Rule 3856
Rubi steps \begin{align*} \text {integral}& = \frac {2 i a (e \sec (c+d x))^{7/2} (a+i a \tan (c+d x))^2}{11 d}+\frac {1}{11} (15 a) \int (e \sec (c+d x))^{7/2} (a+i a \tan (c+d x))^2 \, dx \\ & = \frac {2 i a (e \sec (c+d x))^{7/2} (a+i a \tan (c+d x))^2}{11 d}+\frac {10 i (e \sec (c+d x))^{7/2} \left (a^3+i a^3 \tan (c+d x)\right )}{33 d}+\frac {1}{3} \left (5 a^2\right ) \int (e \sec (c+d x))^{7/2} (a+i a \tan (c+d x)) \, dx \\ & = \frac {10 i a^3 (e \sec (c+d x))^{7/2}}{21 d}+\frac {2 i a (e \sec (c+d x))^{7/2} (a+i a \tan (c+d x))^2}{11 d}+\frac {10 i (e \sec (c+d x))^{7/2} \left (a^3+i a^3 \tan (c+d x)\right )}{33 d}+\frac {1}{3} \left (5 a^3\right ) \int (e \sec (c+d x))^{7/2} \, dx \\ & = \frac {10 i a^3 (e \sec (c+d x))^{7/2}}{21 d}+\frac {2 a^3 e (e \sec (c+d x))^{5/2} \sin (c+d x)}{3 d}+\frac {2 i a (e \sec (c+d x))^{7/2} (a+i a \tan (c+d x))^2}{11 d}+\frac {10 i (e \sec (c+d x))^{7/2} \left (a^3+i a^3 \tan (c+d x)\right )}{33 d}+\left (a^3 e^2\right ) \int (e \sec (c+d x))^{3/2} \, dx \\ & = \frac {10 i a^3 (e \sec (c+d x))^{7/2}}{21 d}+\frac {2 a^3 e^3 \sqrt {e \sec (c+d x)} \sin (c+d x)}{d}+\frac {2 a^3 e (e \sec (c+d x))^{5/2} \sin (c+d x)}{3 d}+\frac {2 i a (e \sec (c+d x))^{7/2} (a+i a \tan (c+d x))^2}{11 d}+\frac {10 i (e \sec (c+d x))^{7/2} \left (a^3+i a^3 \tan (c+d x)\right )}{33 d}-\left (a^3 e^4\right ) \int \frac {1}{\sqrt {e \sec (c+d x)}} \, dx \\ & = \frac {10 i a^3 (e \sec (c+d x))^{7/2}}{21 d}+\frac {2 a^3 e^3 \sqrt {e \sec (c+d x)} \sin (c+d x)}{d}+\frac {2 a^3 e (e \sec (c+d x))^{5/2} \sin (c+d x)}{3 d}+\frac {2 i a (e \sec (c+d x))^{7/2} (a+i a \tan (c+d x))^2}{11 d}+\frac {10 i (e \sec (c+d x))^{7/2} \left (a^3+i a^3 \tan (c+d x)\right )}{33 d}-\frac {\left (a^3 e^4\right ) \int \sqrt {\cos (c+d x)} \, dx}{\sqrt {\cos (c+d x)} \sqrt {e \sec (c+d x)}} \\ & = -\frac {2 a^3 e^4 E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d \sqrt {\cos (c+d x)} \sqrt {e \sec (c+d x)}}+\frac {10 i a^3 (e \sec (c+d x))^{7/2}}{21 d}+\frac {2 a^3 e^3 \sqrt {e \sec (c+d x)} \sin (c+d x)}{d}+\frac {2 a^3 e (e \sec (c+d x))^{5/2} \sin (c+d x)}{3 d}+\frac {2 i a (e \sec (c+d x))^{7/2} (a+i a \tan (c+d x))^2}{11 d}+\frac {10 i (e \sec (c+d x))^{7/2} \left (a^3+i a^3 \tan (c+d x)\right )}{33 d} \\ \end{align*}
Result contains higher order function than in optimal. Order 5 vs. order 4 in optimal.
Time = 4.84 (sec) , antiderivative size = 161, normalized size of antiderivative = 0.80 \[ \int (e \sec (c+d x))^{7/2} (a+i a \tan (c+d x))^3 \, dx=-\frac {a^3 e^3 \sec ^4(c+d x) \sqrt {e \sec (c+d x)} \left (-908 \cos (c+d x)-858 \cos (3 (c+d x))-154 \cos (5 (c+d x))+\frac {77}{2} e^{-5 i (c+d x)} \left (1+e^{2 i (c+d x)}\right )^{11/2} \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {3}{4},\frac {7}{4},-e^{2 i (c+d x)}\right )-38 i \sin (c+d x)-451 i \sin (3 (c+d x))-77 i \sin (5 (c+d x))\right ) (-i+\tan (c+d x))}{1848 d} \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 487 vs. \(2 (201 ) = 402\).
Time = 11.29 (sec) , antiderivative size = 488, normalized size of antiderivative = 2.42
\[-\frac {2 i e^{3} a^{3} \sqrt {e \sec \left (d x +c \right )}\, \left (231 \left (\cos ^{2}\left (d x +c \right )\right ) \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, E\left (i \left (\csc \left (d x +c \right )-\cot \left (d x +c \right )\right ), i\right )-231 \left (\cos ^{2}\left (d x +c \right )\right ) \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, F\left (i \left (\csc \left (d x +c \right )-\cot \left (d x +c \right )\right ), i\right )+462 \cos \left (d x +c \right ) \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, E\left (i \left (\csc \left (d x +c \right )-\cot \left (d x +c \right )\right ), i\right )-462 F\left (i \left (\csc \left (d x +c \right )-\cot \left (d x +c \right )\right ), i\right ) \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \cos \left (d x +c \right )+231 \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, E\left (i \left (\csc \left (d x +c \right )-\cot \left (d x +c \right )\right ), i\right )-231 F\left (i \left (\csc \left (d x +c \right )-\cot \left (d x +c \right )\right ), i\right ) \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}-231 i \sin \left (d x +c \right ) \left (\tan ^{2}\left (d x +c \right )\right )-77 i \left (\tan ^{3}\left (d x +c \right )\right )-308 i \left (\tan ^{3}\left (d x +c \right )\right ) \sec \left (d x +c \right )+231 i \tan \left (d x +c \right ) \left (\sec ^{3}\left (d x +c \right )\right )-132 \left (\sec ^{2}\left (d x +c \right )\right )-132 \left (\sec ^{3}\left (d x +c \right )\right )+21 \left (\sec ^{4}\left (d x +c \right )\right )+21 \left (\sec ^{5}\left (d x +c \right )\right )\right )}{231 d \left (\cos \left (d x +c \right )+1\right )}\]
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.08 (sec) , antiderivative size = 316, normalized size of antiderivative = 1.56 \[ \int (e \sec (c+d x))^{7/2} (a+i a \tan (c+d x))^3 \, dx=-\frac {2 \, {\left (\sqrt {2} {\left (231 i \, a^{3} e^{3} e^{\left (11 i \, d x + 11 i \, c\right )} + 1309 i \, a^{3} e^{3} e^{\left (9 i \, d x + 9 i \, c\right )} + 946 i \, a^{3} e^{3} e^{\left (7 i \, d x + 7 i \, c\right )} + 870 i \, a^{3} e^{3} e^{\left (5 i \, d x + 5 i \, c\right )} + 407 i \, a^{3} e^{3} e^{\left (3 i \, d x + 3 i \, c\right )} + 77 i \, a^{3} e^{3} e^{\left (i \, d x + i \, c\right )}\right )} \sqrt {\frac {e}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} e^{\left (\frac {1}{2} i \, d x + \frac {1}{2} i \, c\right )} + 231 \, \sqrt {2} {\left (i \, a^{3} e^{3} e^{\left (10 i \, d x + 10 i \, c\right )} + 5 i \, a^{3} e^{3} e^{\left (8 i \, d x + 8 i \, c\right )} + 10 i \, a^{3} e^{3} e^{\left (6 i \, d x + 6 i \, c\right )} + 10 i \, a^{3} e^{3} e^{\left (4 i \, d x + 4 i \, c\right )} + 5 i \, a^{3} e^{3} e^{\left (2 i \, d x + 2 i \, c\right )} + i \, a^{3} e^{3}\right )} \sqrt {e} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, e^{\left (i \, d x + i \, c\right )}\right )\right )\right )}}{231 \, {\left (d e^{\left (10 i \, d x + 10 i \, c\right )} + 5 \, d e^{\left (8 i \, d x + 8 i \, c\right )} + 10 \, d e^{\left (6 i \, d x + 6 i \, c\right )} + 10 \, d e^{\left (4 i \, d x + 4 i \, c\right )} + 5 \, d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )}} \]
[In]
[Out]
Timed out. \[ \int (e \sec (c+d x))^{7/2} (a+i a \tan (c+d x))^3 \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int (e \sec (c+d x))^{7/2} (a+i a \tan (c+d x))^3 \, dx=\int { \left (e \sec \left (d x + c\right )\right )^{\frac {7}{2}} {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{3} \,d x } \]
[In]
[Out]
\[ \int (e \sec (c+d x))^{7/2} (a+i a \tan (c+d x))^3 \, dx=\int { \left (e \sec \left (d x + c\right )\right )^{\frac {7}{2}} {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{3} \,d x } \]
[In]
[Out]
Timed out. \[ \int (e \sec (c+d x))^{7/2} (a+i a \tan (c+d x))^3 \, dx=\int {\left (\frac {e}{\cos \left (c+d\,x\right )}\right )}^{7/2}\,{\left (a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}^3 \,d x \]
[In]
[Out]